package com.bdqn.t330.ch11.servcie;

import com.bdqn.t330.ch11.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface UserService {

    public List<User> loginService(String usrName, String usrPassword);

    public Page<User> getListService(Map<String, Object> param, Pageable pageable);

    public User saveService(User user);

    public void deleteUserService(Long usrId) throws Exception;

    public User findByUserIdService(Long usrId);

    public User findByUsrNameBiz(String usrName);
}
